package com.huishu.user.pojo.dto;

import com.huishu.commons.utlis.RegexUtils;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @ClassName：UserRegisterOrLoginDTO
 * @Author: ljj
 * @Date: 2023/4/6 17:08
 */
@Data
public class UserRegisterOrLoginDTO {
    /**
     * 账号
     */
    @Pattern(regexp = RegexUtils.REGEX_TEL, message = "手机号不正确")
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    /**
     * 验证码
     */
    @NotEmpty(message = "验证码不能为空")
    private String smsCode;

    /**
     * 微信code
     */
    private String code;
}
